#ifndef _STRAWGUI_COMPONENT_OBJECT_CHECKBOX_H_
#define _STRAWGUI_COMPONENT_OBJECT_CHECKBOX_H_

#include "sObjectLabel.h"

namespace sgui
{
namespace res
{

class sObjectCheckbox : public sObjectLabel
{
private:
    bool                        m_checked;
public:
    static const std::wstring OBJECT_CLASS;

	inst::sComponentInstance* getInstance(sGUI& gui, inst::sComponentInstance* parent = NULL);

    const bool& getChecked() const { return m_checked; }
    void setChecked(const bool& value) { m_checked = m_checked; }

    void load(db::Record &file);
    void save(db::Record &file) const;
    void clear();

#ifdef _EDITOR
	void exportRTTI(rtti::sInfoList& list);
#endif
    const std::wstring getClass() const { return OBJECT_CLASS; }

    sObjectCheckbox(sGUI& gui, const std::wstring& name);
};

};
};

#endif